package com.haiyuancloud.base.server;

import com.haiyuancloud.common.security.starter.annotation.EnableHaiyuanCloudResourceServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * TB_UI_PRODUCT_RUN_KINSHIP
 * @author haiyuan
 */
@EnableFeignClients
@SpringBootApplication
@EnableHaiyuanCloudResourceServer
@EnableTransactionManagement
@EnableScheduling
@EnableCaching
@MapperScan({"com.haiyuancloud.base.id.mapper"})
@ComponentScan(basePackages = {"com.haiyuancloud.*","com.baidu.fsg.*"})
public class HaiyuanBaseServerApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder(HaiyuanBaseServerApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);

    }
}
